{extend name="public/base" /}
    {block name="css"}
    <!-- iCheck for checkboxes and radio inputs -->
    <link rel="stylesheet" href="__ADMINLTE__plugins/iCheck/all.css">
    {/block}
  {block name="content"}
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            模板管理
            <small>Template List</small>
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">

          <!-- Your Page Content Here -->
          <div class="row">
            <div class="col-xs-12">
              <div class="box">
                <div class="box-header">
                  <h3 class="box-title">模板列表</h3>
                  <div class="box-tools">
                    <div class="input-group" style="width: 150px;">
                      <input type="text" name="table_search" class="form-control input-sm pull-right" placeholder="Search">
                      <div class="input-group-btn">
                        <button class="btn btn-sm btn-default"><i class="fa fa-search"></i></button>
                      </div>
                    </div>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body table-responsive no-padding">
                  <table class="table table-hover">
                    <tr>
                      <th><button class="btn btn-xs btn-primary">全选</button></th>
                      <th>模板名称</th>
                      <th>模板类型</th>
                      <th>添加日期</th>
                      <th>操作</th>
                    </tr>
                    {volist name='list' id='vo'}
                    <tr>
                        <td>
                            <label>
                              <input type="checkbox" class="minimal">
                            </label>
                        </td>
                        <td>{$vo.temp_name}</td>
                        <td><span class="label label-primary">{$vo.type_name}</span></td>
                        <td>{$vo.create_time}</td>
                        <td>
                            <div class="btn-group">
                                <a href="{:U('Template/del',['id'=>$vo['id']])}">
                                  <button type="button" class="btn btn-sm btn-danger">删除</button>
                                </a>
                            </div>
                        </td>
                    </tr>
                    {/volist}
                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div>
          </div>

        </section>
		  <!-- Main content END-->
    </div>
  {/block}
{block name="js"}
    <!-- iCheck 1.0.1 -->
    <script src="__ADMINLTE__plugins/iCheck/icheck.min.js"></script>
    <script>
        //iCheck for checkbox and radio inputs
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
          checkboxClass: 'icheckbox_minimal-blue',
          radioClass: 'iradio_minimal-blue'
        });
    </script>
{/block}
